package com.ruoyi.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.domain.SysCodeRule;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.common.domain.SysCodeRuleEntry;

/**
 * 编码规则主Mapper接口
 *
 * @author husky
 * @date 2023-11-04
 */
@Mapper
public interface SysCodeRuleMapper extends BaseMapper<SysCodeRule> {
    /**
     * 查询编码规则主
     *
     * @param id 编码规则主主键
     * @return 编码规则主
     */
    List<SysCodeRuleEntry> selectSysCodeRuleEntryById(@Param("id")Long id);

    List<SysCodeRuleEntry> selectSysCodeRuleEntryById1(@Param("id")Long id);

    /**
     * 删除编码规则主信息
     *
     * @param id 编码规则主主键
     * @return 结果
     */
    int deleteSysCodeRuleEntryByRuleId(@Param("id")Long id);

    /**
     * 批量新增编码规则子
     *
     * @param sysCodeRuleEntryList 编码规则子列表
     * @return 结果
     */
    int batchInsertSysCodeRuleEntry(List<SysCodeRuleEntry> sysCodeRuleEntryList);
}
